package app.mvc
{
	/**
	 * MVC所用到的所有通知常量
	 * @author XiLing
	 */
	public class Notifications
	{
		public static const APP_STARTUP:String = "APP_STARTUP";
		public static const APP_STARTUP_OVER:String = "APP_STARTUP_OVER";
		public static const APP_IMPORT_CLASS:String = "APP_IMPORT_CLASS";
		public static const APP_REGISTER_CLASS:String = "APP_REGISTER_CLASS";
		
		//proxy
		public static const PROXY_APP_LABELS_BAR_PARSED:String = "PROXY_APP_LABELS_BAR_PARSED";
		public static const PROXY_APP_CONTROLS_BAR_PARSED:String = "PROXY_APP_CONTROLS_BAR_PARSED";
		
		//系统commands
		public static const CMD_TO_SAVE_FILE:String = "CMD_TO_SAVE_FILE";					//保存
		public static const CMD_TO_SAVE_FILE_AS:String = "CMD_TO_SAVE_FILE_AS";		//另存为
		public static const CMD_TO_UNDO:String = "CMD_TO_UNDO";		//撤消
		public static const CMD_TO_REDO:String = "CMD_TO_REDO";		//还原
		
		//物件层commands
		public static const CMD_TO_CLEAR_OBJECTS:String = "CMD_TO_CLEAR_OBJECTS";
		public static const CMD_CLEAR_OBJECTS:String = "CMD_CLEAR_OBJECTS";
		
		public static const CMD_TO_ADD_OBJECT:String = "CMD_TO_ADD_OBJECT";			//增加控件
		public static const CMD_TO_REMOVE_OBJECT:String = "CMD_TO_REMOVE_OBJECT";			//删除控件
		public static const CMD_TO_MOVE_OBJECTS:String = "CMD_TO_MOVE_OBJECTS";			//移动控件
		
		public static const CMD_TO_CHANGE_BACKGROUND:String = "CMD_TO_CHANGE_BACKGROUND";			//更换背景
		
		//Mediator的命令
		public static const TO_ADD_OBJECT:String = "TO_ADD_OBJECT";			//增加控件
		public static const TO_REMOVE_OBJECT:String = "TO_REMOVE_OBJECT";			//删除控件
		public static const TO_MOVE_OBJECTS:String = "TO_MOVE_OBJECTS";			//移动控件
		
		public static const TO_CHANGE_BACKGROUND:String = "TO_CHANGE_BACKGROUND";			//更换背景
		public static const TO_ENABLE_DRAGGING_DETECTOR:String = "TO_ENABLE_DRAGGING_DETECTOR";			//开启拖动时检测
	}
}